package br.com.usp.shared;

import com.google.gwt.user.client.rpc.IsSerializable;
import com.smartgwt.client.widgets.grid.ListGridRecord;

public class GridDiagrama extends ListGridRecord implements IsSerializable {

	private DiagramaDTO dDTO; 
	
	public GridDiagrama(DiagramaDTO d)
	  {
		  this.dDTO = d;		  
		  setId(d.getId());
		  setNome(d.getNome());
 
		  
	  }
	
	  public GridDiagrama( )
	  {
	 
	  }     
	  
	  public void setId(String id) {   
	         setAttribute("id", id);   
	     }   
	   
	     public String getId() {   
	         return getAttributeAsString("id");   
	     }   
	     public void setNome(String nome) {   
	         setAttribute("nome", nome);   
	     }   
	   
	     public String getNome() {   
	         return getAttributeAsString("nome");   
	     }   
	
}
